﻿#pragma once

#include <CommCtrl.h>

typedef struct UserListView UserListView;

typedef void(*UserListViewDelete)(UserListView*);
typedef void(*UserListViewAddItem)(UserListView*, LPCTSTR, int, BOOL);
typedef void(*UserListViewChangeItemColor)(UserListView*, LPCTSTR, BOOL);

// 用户列表视图
struct UserListView {
    HWND mHandle;           // 窗口句柄
    HIMAGELIST mIconList;   // 图标列表

    UserListViewDelete deleteSelf;
    UserListViewAddItem addItem;
    UserListViewChangeItemColor changeItemColor;
};

UserListView* New_UserListView(UINT, HWND);
